package com.wang.dynamic.controller;

import com.wang.dynamic.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: wangning1@abupdate.com
 * @date: 2023-12-20 09:28
 **/
@RestController
public class UserController {

    @Autowired
    private IUserService userService;
    //
    // @Autowired
    // private IUserService2 userService2;

    @GetMapping("listDS1")
    public Object listDS1(){
        return userService.listUserBySource1();
    }

    @GetMapping("listDS2")
    public Object listDS2(){
        return userService.listUserBySource2();
    }

}